import maya.cmds as cmds
import fileinput
def scene_saved():
	save_file = cmds.file(q=True,list=True)[0]
	if save_file.endswith('.ma'):
		for line in fileinput.input(save_file, inplace = 1):
			line.replace('fileInfo "license" "student";', 'fileInfo "license" "education";')
		fileinput.close()
cmds.scriptJob(e=['SceneSaved',scene_saved])